package com.wx.md;

import com.wx.sftp.SaasFtp;
import com.wx.sftp.config.SaasFtpConf;
import com.wx.sftp.impl.BasicSaasFtp;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@MapperScan("com.wx.md.dao")
@SpringBootApplication(scanBasePackages = "com.wx")
public class MsApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(MsApp.class, args);
    }


    @Bean
    public SaasFtp saasFtpPool(SaasFtpConf conf) {
        return new BasicSaasFtp(conf);
    }


}
